package com.z.other.mapper;

import com.z.other.model.Files;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxy
 * @since 2022-03-07
 */
public interface FilesMapper extends BaseMapper<Files> {

    @Select("select count(*) from t_files ${whereSql}")
    Integer conutByMap(String whereSql);

    @Select("select * from t_files t ${where} order by t.id limit #{startPosition} , #{limit}")
    List<Files> findPageByWhereSql(String where, Integer startPosition, Integer limit);
}
